/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class PressureCooker {
    static categoryCode = '010050034';

    static categoryName = '压力锅';

    device = {};

    opts = {};

    _to = undefined;

    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device;
        this.opts = opts;
        this._to = to;
    }

    get categoryCode() {
        return PressureCooker.categoryCode;
    }

    get categoryName() {
        return PressureCooker.categoryName;
    }

    getCookPressure(params) {
        return command({
            method: 'getCookPressure',
            methodId: 'phEqY8XW',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getCookTemperature(params) {
        return command({
            method: 'getCookTemperature',
            methodId: 'ptRSxWQz',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getCookTime(params) {
        return command({
            method: 'getCookTime',
            methodId: 'pdN7VzuI',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getCurrentTemperature(params) {
        return command({
            method: 'getCurrentTemperature',
            methodId: 'p0cr5nMM',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getMode(params) {
        return command({
            method: 'getMode',
            methodId: 'p3deZI2E',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getRemainTime(params) {
        return command({
            method: 'getRemainTime',
            methodId: 'pgh0u23R',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'pkpDAEi9',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getWorkStatus(params) {
        return command({
            method: 'getWorkStatus',
            methodId: 'pz93w9tn',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setCookPressure(params) {
        return command({
            method: 'setCookPressure',
            methodId: 'pUPQLLNb',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setCookTemperature(params) {
        return command({
            method: 'setCookTemperature',
            methodId: 'pZgRrvAq',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setCookTime(params) {
        return command({
            method: 'setCookTime',
            methodId: 'pGoxpN5k',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setMode(params) {
        return command({
            method: 'setMode',
            methodId: 'p1vZQTE1',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setStart(params) {
        return command({
            method: 'setStart',
            methodId: 'ppAX3ZYx',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setStop(params) {
        return command({
            method: 'setStop',
            methodId: 'peH3bdgG',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'pDrhgJ1o',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default PressureCooker;
